home *** CD-ROM | disk | FTP | other *** search
/ Danny Amor's Online Library / Danny Amor's Online Library - Volume 1.iso / html / faqs / faq / ppp-faq / part4 < prev    next >
Encoding:
Text File  |  1995-07-25  |  8.5 KB  |  188 lines

  1. Subject: comp.protocols.ppp part4 of 8 of frequently wanted information
  2. Newsgroups: comp.protocols.ppp,news.answers,comp.answers
  3. From: ignatios@cs.uni-bonn.de (Ignatios Souvatzis)
  4. Date: 14 Nov 1994 19:21:04 GMT
  5.  
  6. Archive-name: ppp-faq/part4
  7. Version: $Revision: 3.11 $
  8. Last-modified: $Date: 94/10/03 20:10:18 $
  9. URL: http://cs.uni-bonn.de/ppp/part4.html
  10.  
  11.                                                   PPP questions and answers
  12.                     4. MISC. PPP QUESTIONS WITH ANSWERS
  13.                                      
  14.        Does somebody have a patent on PPP?
  15.       
  16.        Is it possible to use PPP as link layer in ISDN?
  17.       
  18.        My ppp does infinite configuration negotiation. What's wrong?
  19.       
  20.        What is Asychronous HDLC?
  21.       
  22. 4.1 Does somebody have a patent on PPP?
  23.  
  24.  
  25. From: emv@msen.com (Edward Vielmetti)
  26. Newsgroups: comp.protocols.tcp-ip,comp.unix.sysv386,comp.protocols.ppp
  27. Subject: Re: Public domain PPP for SCO 2.0??
  28. Date: 8 Dec 1992 06:04:52 GMT
  29.  
  30.    [Somebody] wrote:
  31.    
  32.    Doesn't matter.  I just read (in another newsgroup) that DEC has a
  33.    patent on PPP, and is asking $5000 for a license.  That means no public
  34.    domain PPP, and a rapidly increasing reluctance to support it from OEMs.
  35.     Stick with SLIP until something better comes along.  This is *not*
  36.    true.
  37.    
  38.    DEC has a patent application outstanding for the negotiation of a 48 bit
  39.    checksum which might be used in one of the option negotiation phases.
  40.    It is not an essential part of PPP; many implementations currently do
  41.    not use this little tiny algorithm in the way they work, and they work
  42.    just fine.
  43.    
  44.    There is no indication that the 48 bit FCS will be accepted or
  45.    standardized on by the IETF - from my reading of the  mailing lists
  46.    traffic that is unlikely at this point.
  47.    
  48.    There are free PPPs and there will continue to be free PPPs.  You will
  49.    also more likely buy PPPs as part of hardware you buy.
  50.    
  51. 4.2 Is it possible to use PPP as link layer in ISDN?
  52.  
  53.    [Somebody] wrote: Is it possible to use PPP as link layer in ISDN?  If
  54.    yes, what about signalling? Do you need to combine PPP with the I.451
  55.    for basic call control? PPP over ISDN is described by RFC 1618. It
  56.    promotes PPP in bit-sync or in octet-sync HDLC over ISDN B-channels, or
  57.    PPP in X25 / PPP in Frame Relay over ISDN D-channel.
  58.    
  59. 4.3 My ppp does infinite configuration negotiation.
  60. What's wrong?
  61.  
  62.   4.3.1 [CABLE PROBLEM]
  63.   
  64.    Each other month somebody posts a question which essentially is the one
  65.    above. It could, of course, be some very strange set of configurations
  66.    options which get the ppp to never terminate the negotiation process
  67.    (typical situations listed in further down). One other possibility was
  68.    seen many times on the derivatives of public ppp for suns, namely
  69.    pppd-1.01beta and dp-2.x.
  70.    
  71.    Detailed symptoms (from a posting on the net, I saw similar logfiles
  72.    some  months ago):
  73.    
  74.  
  75.   Typical debugging log output:
  76.  
  77.   Dec 18 16:11:01 pppd[1694]: Starting ppp daemon version 1.0beta patchleve
  78. l 1
  79.   Dec 18 16:11:01 pppd[1694]: warning... not a process group leader
  80.   Dec 18 16:11:01 pppd[1694]: pgrpid = 1694
  81.   Dec 18 16:11:01 pppd[1694]: popped stream module : ttcompat
  82.   Dec 18 16:11:01 pppd[1694]: popped stream module : ldterm
  83.   Dec 18 16:11:01 pppd[1694]: Using unit ppp0
  84.   Dec 18 16:11:01 pppd[1694]: hostname = Riga
  85.   Dec 18 16:11:01 pppd[1694]: connect: ppp0 /dev/ttya
  86.   Dec 18 16:11:01 pppd[1694]: fsm_sconfreq(c021): Sent id 1.
  87.   Dec 18 16:11:01 pppd[1694]: Timeout 6194:16b38 in 3 seconds.
  88.   Dec 18 16:11:01 pppd[1694]: Setting itimer for 3 seconds.
  89.   Dec 18 16:11:04 pppd[1694]: Alarm
  90.   Dec 18 16:11:04 pppd[1694]: fsm_sconfreq(c021): Sent id 2.
  91.   Dec 18 16:11:04 pppd[1694]: Timeout 6194:16b38 in 3 seconds.
  92.   Dec 18 16:11:04 pppd[1694]: Setting itimer for 3 seconds.
  93.   Dec 18 16:11:04 pppd[1694]: Setting itimer for 3 seconds.
  94.   Dec 18 16:11:07 pppd[1694]: Alarm
  95.   Dec 18 16:11:07 pppd[1694]: fsm_sconfreq(c021): Sent id 3.
  96.   Dec 18 16:11:07 pppd[1694]: Timeout 6194:16b38 in 3 seconds.
  97.   Dec 18 16:11:07 pppd[1694]: Setting itimer for 3 seconds.
  98.   Dec 18 16:11:07 pppd[1694]: Setting itimer for 3 seconds.
  99.  
  100.   ... [lots of repetitious logging deleted] ...
  101.  
  102.   Dec 18 17:02:24 pppd[1694]: Alarm
  103.   Dec 18 17:02:24 pppd[1694]: fsm_sconfreq(c021): Sent id 254.
  104.   Dec 18 17:02:24 pppd[1694]: Timeout 6194:16b38 in 3 seconds.
  105.   Dec 18 17:02:24 pppd[1694]: Setting itimer for 3 seconds.
  106.   Dec 18 17:02:24 pppd[1694]: Setting itimer for 3 seconds.
  107.   Dec 18 17:02:26 pppd[1694]: Hangup
  108.   Dec 18 17:02:26 pppd[1694]: Untimeout 6194:16b38.
  109.   Dec 18 17:02:26 pppd[1694]: Setting itimer for 0 seconds.
  110.   Dec 18 17:02:26 pppd[1694]: str_restore: pushed module ldterm
  111.   Dec 18 17:02:26 pppd[1694]: str_restore: pushed module ttcompat
  112.   Dec 18 17:02:26 pppd[1694]: fcntl(F_SETFL, fdflags): Bad file number
  113.  
  114.    The above final is caused by sending a SIGHUP to the pppd process
  115.    (however three successive SIGKILL's seem to be necessary to really   get
  116.    rid of it).
  117.    
  118.      The warning "not a process group leader" appears to be the   innocent
  119.    result of a subtle coding bug, with no later effects,   but I haven't
  120.    tried fixing it (variable "pid" uninitialized).
  121.    
  122.      During all this, there seems to be no activity on the serial line, as
  123.     evident from an Interfaker(tm) breakout patch box.  I was desperate
  124.    enough to lower the speed to 50 bps in order to verify this.
  125.    
  126.      At the same time, "netstat -i" does show increasing figures for the
  127.    ppp0 interface in the "Opkts" column, but in no other column.
  128.    
  129.    Solution: in all cases I could solve, it was a case of missing modem
  130.    control lines in the cables, leading to 'cts' floating to 'false'. The
  131.    LCP FSM happily sent configuration requests (they went to the serial
  132.    line driver buffer (and not out)), waited for an answer, got none, timed
  133.    out, and retried. After lots more of retries, especially on a big
  134.    machine, the send buffer finally does overflow, and ppp stops with an
  135.    error message.
  136.    
  137.    You just have to connect 2,3,4,5,6,7,8 and 20 to the modem to repair it,
  138.    or to wire a reasonably complete null-modem cable. No, there is no
  139.    software hack, except when you patch the sources yourself. And that
  140.    would be a bad idea in my opinion. Even a small Sparcstation SLC can
  141.    overload any modem on a serial line, and you would get lots of
  142.    unnecessary packet drops because of that.
  143.    
  144.                                                                        i.s.
  145.                                                                            
  146.   4.3.2 [ADDRESS CONFIGURATION ERROR]
  147.   
  148.    Each other month somebody posts a question which essentially is the one
  149.    above. It could, of course, be some very strange set of configurations
  150.    options which get the ppp to never terminate the negotiation process,
  151.    but this seems unlikely. This does happen under dp-2.3 [and probably
  152.    others, i.s.] when both sides of the link have differing opinions as to
  153.    what the 2 IP addresses should be.  If the remote-address offered from
  154.    the remote side doesn't match the locally configured version then dp-2.3
  155.    will send back an REJ packet.  The remote side will then resend the
  156.    original address again and the loop will continue.
  157.    
  158.    To see if this is the case check the log for address REJ's.  Then decode
  159.    the two hex addresses and print it out in the normal dot notation.  This
  160.    is the IP address pair of what dp-2.x expected and what it got.  Now
  161.    either reconfigure dp-2.x to expect this address or change the address
  162.    that the other side is sending.
  163.    
  164.                                                          Wolfgang Rupprecht
  165.                                                                            
  166. 4.4 What is Asychronous HDLC?
  167.  
  168.    It's HDLC with a character-by-character encapsulation, rather than a
  169.    bit-by-bit encapsulation. The details are discussed in the RFC1331,
  170.    appendix A. Basically, the flag character, the escape character and
  171.    (possibly) control characters are escaped by prepending the escape
  172.    character and XORing them with 0x20, while sync hdlc transparently
  173.    inserts '0' bits after sequences of 5 '1' bits to be sure to never
  174.    transmit the flag character in the frame.
  175.    
  176.    A short description of the part of ISO 3309:1991 that describes async
  177.    (ISO calls it start/stop mode) HDLC is available with anonymous ftp from
  178.    ftp.uni-erlangen.de in pub/doc/ISO/english/async-HDLC.
  179.    
  180.    
  181. -- 
  182. -- 
  183.     Ignatios Souvatzis
  184. -
  185. Solaris 2.1:  it's slow, needs 200M of disk space and comes without C compiler,
  186. which makes it remarkably close to MS-Windows. oleg@gd.cs.csufresno.edu
  187.  
  188.